﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="testActiveX.aspx.cs" Inherits="Physio_Clinic.testActiveX" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head> <title>C# ActiveX Test</title> </head>

<body onload="myload();">
<h1>This is Our ActiveX Test Page h1>

The message from the ActiveX Control is [
<div id="axmsg"></div>
]

<script type ="text/javascript">
    function myload() {
        var myAx = new ActiveXObject("csharpAx.CashDrawerManager");
        if (myAx != null) {
            myAx.OpenCashDrawer();
            
        }
        else
            lert("NOOOO... we failed");
    }
</script>
</body></html>

